package com.inputabc.helloworld.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TextController {
    @RequestMapping("upper")
    public String upper(@RequestBody String text) {
        return "d...r..."+text.toUpperCase();
    }

    @RequestMapping("lower")
    public String lower(@RequestBody String text) {
        return text.toLowerCase();
    }
}
